Skip to content

refactor: move java-common-protos, java-iam, java-showcase to top level#12839

Open
chingor13 wants to merge 45 commits intomainfrom
flatten-generated-modules
Open

refactor: move java-common-protos, java-iam, java-showcase to top level#12839
chingor13 wants to merge 45 commits intomainfrom
flatten-generated-modules

Conversation

@chingor13
Copy link
Copy Markdown
Contributor

@chingor13 chingor13 commented Apr 17, 2026

Currently, the hermetic code generator can only move files to top level folders. Rather than changing the generator, we will move the generated code to the top level to also make it compatible with librarian.

Other fixes:

  • The hermetic_build scripts had special case logic to force regeneration of the entire repository if the common protos were found in the generation_config.yaml. This is no longer necessary in google-cloud-java as the nightly build regenerates everything
  • Includes the OTel wait for metrics fix similar to tests: Wait for all metrics to show up in ITCompositeTracer #12880
  • Removes configuration for GCS Maven Mirror as that mirror is no longer updated and is missing dependencies

Towards #12735
Towards #12702

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the IAM library configuration to iam-policy, adds an api_id, and introduces a new common-protos library entry in generation_config.yaml. It also adjusts the parent POM relative path in java-common-protos/pom.xml. Feedback focuses on maintaining alphabetical order for library entries, updating the display name for the IAM Policy library for consistency, and ensuring consistent string formatting by removing unnecessary quotes in the configuration file.

Comment thread generation_config.yaml
Comment thread generation_config.yaml
Comment thread generation_config.yaml Outdated
@chingor13 chingor13 marked this pull request as ready for review April 20, 2026 16:53
@chingor13 chingor13 requested a review from a team as a code owner April 20, 2026 16:53
@chingor13 chingor13 marked this pull request as draft April 20, 2026 21:13
@chingor13 chingor13 marked this pull request as ready for review April 22, 2026 18:08
@chingor13 chingor13 changed the title refactor: move java-common-protos to top level refactor: move java-common-protos, java-iam, java-showcase to top level Apr 22, 2026
@snippet-bot
Copy link
Copy Markdown

snippet-bot Bot commented Apr 22, 2026

Here is the summary of changes.

You are about to add 251 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@cloud-java-bot cloud-java-bot requested a review from a team as a code owner April 22, 2026 20:03
@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

[[ "${pomFile}" =~ .*sdk-platform-java.* ]] || \
[[ "${pomFile}" =~ .*java-common-protos.* ]] || \
[[ "${pomFile}" =~ .*java-showcase.* ]] || \
[[ "${pomFile}" =~ .*java-common-protos.* ]] || \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

java-common-protos is duplicated. Also why are we excluding them? Especially for java-common-protos and java-iam, they should be pure generated.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a check that any declared dependency versions are all managed by release-please. common-protos and iam declare dependency versions for protobuf, guava, and grpc. We can't use the first-party-dependencies import because common-protos and iam are in first-party-dependencies.

Comment thread java-showcase/README.md
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few scripts mentioned in README regarding how to run and update showcase tests. Can we make sure those scripts still work after migration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants